package com.example.demo.service.impl;

import com.example.demo.entity.school.AllData;
import com.example.demo.entity.school.SchoolProvince;
import com.example.demo.mapper.SchoolMapper;
import com.example.demo.service.SchoolService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SchoolServiceImpl implements SchoolService {

    @Resource
    private SchoolMapper schoolMapper;

    @Override
    public List<SchoolProvince> getSum() {
        return schoolMapper.getSum();
    }

    @Override
    public int degreeSum() {
        return schoolMapper.degreeSum();
    }

    @Override
    public int specialistSum() {
        return schoolMapper.specialistSum();
    }

    @Override
    public List<SchoolProvince> getEightDegreeSum() {
        return schoolMapper.getEightDegreeSum();
    }

    @Override
    public List<SchoolProvince> getEightSpecialistSum() {
        return schoolMapper.getEightSpecialistSum();
    }

    @Override
    public List<AllData> lookAll() {
        return schoolMapper.lookAll();
    }
}
